package com.javaclimb.service;

import com.javaclimb.pojo.Comment;
import com.javaclimb.utils.PageBean;

import java.util.Date;
import java.util.List;

public interface CommentService {
    /*增加古树*/
    boolean addComment(Comment comment);
    /*根据古树id查询所有评论*/
    List<Comment> getComments(Integer id);
    /*评论点赞*/
    boolean addLike(Integer id);
    /*根据id删除评论*/
    boolean deleteComment(Integer id);
    /*根据id查询*/
    Comment checkIsComment(Integer userId, Integer treeId);

    /*根据id查询所有评论*/
    List<Comment> getCommentsById(Integer id);

    PageBean page(Integer page, Integer pageSize, Integer id, Integer userId, Integer treeId, Date startTime, Date endTime);

    void delete(List<Integer> ids);
}
